package com.briup.day21;

public class Test04_MyAnno {

}

//自定义注解
@interface MyAnno {
    String[] value();
    int age() default 20;
    //Integer id(); error
    int id();
}

//@MyAnno(value = "zs", age = 21)
//@MyAnno(value = "zs")
@MyAnno(value = {"zs","ls"}, id = 10)
class Teacher {
    String name;
    int age;

}